/**
 * @Date 2023-02-21 09:42:02
 * @Remark
 */

// lib
// config
// script & methods & public
// import logUtils from "utils/logUtils";
// http
// import { open, bag, isOkRes } from "public/http/api";
// service
import { simpleListService, simpleObjectService } from "public/service/simple.service";
// api
import { API_DASHBOARD_ADMIN_BASIC, API_DASHBOARD_HOT_BORROW, API_DASHBOARD_HOT_ORDER, API_DASHBOARD_USER_BASIC, DashboardAdminData, DashboardUserData } from "./api";

// interface
// 其它

// 基础数据
export async function getDashboardBasicUserDataService() {

    return simpleObjectService<any, DashboardUserData>(API_DASHBOARD_USER_BASIC, {});
  }
  export async function getDashboardBasicAdminDataService() {
  return simpleObjectService<any, DashboardAdminData>(API_DASHBOARD_ADMIN_BASIC, {})
}

export async function getHotBorrowService() {
  return simpleListService<null,BookDto>(API_DASHBOARD_HOT_BORROW,null)
}
export async function getHotOrderService() {
  return simpleListService<null,BookDto>(API_DASHBOARD_HOT_ORDER,null)
}